<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>

    <style>
        * {
            margin: 0;
            border: 0;
            padding: 0;
            -webkit-box-sizing: border-box;
            box-sizing: border-box;
        }

        .bg {
            margin: 50px auto;
            box-shadow: -2px -2px 2px #eeeeee, 3px 3px 3px #b9b9b9;
            background-color: #f9cc9d;
            padding: 20px;
            position: relative;

        }

        .black-win::before {
            content: '黑棋胜';
            font-size: 48px;
            color: #f00;
            width: 100%;
            height: 100%;
            text-align: center;
            z-index: 9999;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.7)
        }

        .white-win::before {
            content: '白棋胜';
            font-size: 48px;
            color: #f00;
            width: 100%;
            height: 100%;
            text-align: center;
            z-index: 9999;
            position: absolute;
            top: 0;
            left: 0;
            background-color: rgba(0, 0, 0, 0.7)
        }
    </style>
</head>

<body>
    <div class="bg" id="bg">
        <canvas id="myCanvas"></canvas>
    </div>
</body>
<script src="./index.js"></script>

</html>